﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;
using System.Web.Mvc;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "Manager", Namespace = "http://www.haigu.com/")]
    public interface IManager
    {
        [OperationContract]
        List<Manager> GetAll();
        [OperationContract]
        List<Manager> GetAllByLevel(int? parentID = null,bool isLevel=true);
        [OperationContract]
        List<Manager> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        Manager GetByID(int id);
        [OperationContract]
        Manager GetByUser(string user);
        [OperationContract]
        CurrentUserDTO GetByUserAndRoles(string user);
        [OperationContract]
        bool Add(Manager model);
        [OperationContract]
        bool Update(Manager model);
        [OperationContract]
        bool Delete(int id);
        [OperationContract]
        bool IsLogin(string user, string pwd);
        [OperationContract]
        bool MoveMember(string selectedMembers, string managerIDs, int? sourceManagerID = null);

    }
}
